package com.test;

import com.sun.tracing.dtrace.NameAttributes;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//@AllArgsConstructor
public class TreeNode<T> {
	public T val;
	public TreeNode<T> left;
	public TreeNode<T> right;

	public TreeNode(T x) { val = x; }

	public TreeNode(T val, TreeNode<T> left, TreeNode<T> right) {
		this.val = val;
		this.left = left;
		this.right = right;
	}
}
